//
//  NSString+Html.m
//  PKTProject
//
//  Created by young on 15/6/2.
//  Copyright (c) 2015年 young. All rights reserved.
//

#import "NSString+Html.h"

@implementation NSString (Html)

+ (NSString *)importStyleWithHtmlString:(NSString *)HTML
{
    NSString *filePath = [[NSBundle mainBundle]pathForResource:@"style" ofType:@"css"];
//    NSLog(@"-%@",filePath);
    NSString *replace = [NSString stringWithFormat:@"<link href=\"%@\" rel=\"stylesheet\" type=\"text/css\"/>",filePath];
    HTML = [HTML stringByReplacingOccurrencesOfString:@"</head>" withString:replace];
//    NSLog(@"HTML:%@",HTML);
    return HTML;

}
@end
